Support Multiple Employer Records and Refactor Employment Data Processing #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR extends the ILR file creator to support up to 5 employment statuses per learner (previously limited to 2), whilst significantly improving code maintainability through strategic refactoring. The changes align with ILR 25/26 requirements and make the codebase substantially easier to navigate and extend.
Tip
No action required after pulling. All changes are backwards compatible - the refactoring maintains existing API behaviour whilst improving code organisation.
Changes
Architecture & Refactoring
Major code organisation improvements to enhance maintainability:
main.jsinto dedicated utility module (src/utils/buildEmploymentArray.js, 191 lines)src/utils/buildLearningDeliveryArray.js, 405 lines)src/utils/pushLearners.js, 47 lines)main.jscomplexity by ~674 linesImpact: Core application logic now follows single-responsibility principle with clear separation of concerns.
Feature: Extended Employment Status Tracking
Expanded employment monitoring capabilities:
Use case: Supports learners with multiple concurrent employment situations or complex employment histories throughout their learning journey.
Bug Fixes
Documentation
Comprehensive 25/26 academic year reference materials:
docs/inputs/25_26 Columns.csv, 221 columns documented)docs/inputs/25_26 Export.csv)docs/inputs/25_26 Values.csv, 220 entries)docs/inputs/Status-Comparison.md)Impact: Developers and data managers now have complete reference documentation for input validation and troubleshooting.
index.htmlUpdated UI components to support new employment status fields (172 line changes)
Summary
Like reorganising a chaotic spice rack where everything was crammed into one drawer, we've now got dedicated compartments for employment paprika, learning delivery cumin, and learner coriander - plus we've added three more shelves for when apprentices moonlight as circus performers, dog walkers, and competitive cheese rollers simultaneously.